package cn.virens.web.components.shiro.token;

import org.apache.shiro.authc.UsernamePasswordToken;

import cn.virens.database.enums.UserType;

public class ChannelTokenOauth2 extends UsernamePasswordToken implements ChannelToken {
	private static final long serialVersionUID = 5938772658507792454L;

	private String usertype;

	public ChannelTokenOauth2(String username, UserType usertype, String host) {
		super(username, usertype.name(), host);

		this.usertype = Integer.toString(usertype.getKey());
	}

	@Override
	public String getUsertype() {
		return usertype;
	}

}
